package com.yangl.corejava.hash;

import java.util.HashSet;

import com.yangl.corejava.bean.Student;

public class HashSetTest {
	public static void main(String[] args) {
      HashSet<Student> ss = new HashSet<Student>();
      Student s1 = new Student("1", "黎明", 20);
      Student s2 = new Student("1", "黎明", 20);
      ss.add(s1);
      ss.add(s2);
      System.out.println(ss.size());
	}
}
